package com.jiaoyou.baojian.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jiaoyou.baojian.R;
import com.jiaoyou.baojian.entity.NewsEntity;

/**
 * Created by DemonZYM on 17/4/13.
 */

public class NewsAdapter extends BaseQuickAdapter<NewsEntity, BaseViewHolder> {

    public NewsAdapter() {
        super(R.layout.item_news);
    }

    @Override
    protected void convert(BaseViewHolder helper, NewsEntity item) {
        helper.setText(R.id.time, item.getModifiedAt());
        helper.setText(R.id.message, item.getMessage());
    }
}
